#!/bin/sh
pushd "$PODS_ROOT/../" > /dev/null
RCT_SCRIPT_POD_INSTALLATION_ROOT=$(pwd)
popd >/dev/null

export RCT_SCRIPT_RN_DIR=${PODS_TARGET_SRCROOT}/../..
export RCT_SCRIPT_LIBRARY_NAME=FBReactNativeSpec
export RCT_SCRIPT_OUTPUT_DIR=$RCT_SCRIPT_POD_INSTALLATION_ROOT/build/generated/ios
export RCT_SCRIPT_LIBRARY_TYPE=modules
export RCT_SCRIPT_JS_SRCS_PATTERN=Native*.js
export RCT_SCRIPT_JS_SRCS_DIR=../../Libraries
export RCT_SCRIPT_CODEGEN_MODULE_DIR=build/generated/ios/.
export RCT_SCRIPT_CODEGEN_COMPONENT_DIR=build/generated/ios/react/renderer/components
export RCT_SCRIPT_FILE_LIST="[\"../../Libraries/ActionSheetIOS/NativeActionSheetManager.js\", \"../../Libraries/Alert/NativeAlertManager.js\", \"../../Libraries/Animated/NativeAnimatedHelper.js\", \"../../Libraries/Animated/NativeAnimatedModule.js\", \"../../Libraries/Animated/NativeAnimatedTurboModule.js\", \"../../Libraries/AppState/NativeAppState.js\", \"../../Libraries/BatchedBridge/NativeModules.js\", \"../../Libraries/Blob/NativeBlobModule.js\", \"../../Libraries/Blob/NativeFileReaderModule.js\", \"../../Libraries/BugReporting/NativeBugReporting.js\", \"../../Libraries/Components/AccessibilityInfo/NativeAccessibilityInfo.js\", \"../../Libraries/Components/AccessibilityInfo/NativeAccessibilityManager.js\", \"../../Libraries/Components/Clipboard/NativeClipboard.js\", \"../../Libraries/Components/Keyboard/NativeKeyboardObserver.js\", \"../../Libraries/Components/Sound/NativeSoundManager.js\", \"../../Libraries/Components/StatusBar/NativeStatusBarManagerAndroid.js\", \"../../Libraries/Components/StatusBar/NativeStatusBarManagerIOS.js\", \"../../Libraries/Components/ToastAndroid/NativeToastAndroid.js\", \"../../Libraries/Core/NativeExceptionsManager.js\", \"../../Libraries/Core/SegmentFetcher/NativeSegmentFetcher.js\", \"../../Libraries/Core/Timers/NativeTiming.js\", \"../../Libraries/Core/__mocks__/NativeExceptionsManager.js\", \"../../Libraries/DevToolsSettings/NativeDevToolsSettingsManager.js\", \"../../Libraries/EventEmitter/NativeEventEmitter.js\", \"../../Libraries/EventEmitter/__mocks__/NativeEventEmitter.js\", \"../../Libraries/HeapCapture/NativeJSCHeapCapture.js\", \"../../Libraries/Image/NativeImageEditor.js\", \"../../Libraries/Image/NativeImageLoaderAndroid.js\", \"../../Libraries/Image/NativeImageLoaderIOS.js\", \"../../Libraries/Image/NativeImageStoreAndroid.js\", \"../../Libraries/Image/NativeImageStoreIOS.js\", \"../../Libraries/Interaction/NativeFrameRateLogger.js\", \"../../Libraries/IntersectionObserver/NativeIntersectionObserver.js\", \"../../Libraries/IntersectionObserver/__mocks__/NativeIntersectionObserver.js\", \"../../Libraries/Linking/NativeIntentAndroid.js\", \"../../Libraries/Linking/NativeLinkingManager.js\", \"../../Libraries/Modal/NativeModalManager.js\", \"../../Libraries/MutationObserver/NativeMutationObserver.js\", \"../../Libraries/MutationObserver/__mocks__/NativeMutationObserver.js\", \"../../Libraries/NativeComponent/NativeComponentRegistry.js\", \"../../Libraries/NativeComponent/NativeComponentRegistryUnstable.js\", \"../../Libraries/NativeModules/specs/NativeAnimationsDebugModule.js\", \"../../Libraries/NativeModules/specs/NativeDevMenu.js\", \"../../Libraries/NativeModules/specs/NativeDevSettings.js\", \"../../Libraries/NativeModules/specs/NativeDeviceEventManager.js\", \"../../Libraries/NativeModules/specs/NativeDialogManagerAndroid.js\", \"../../Libraries/NativeModules/specs/NativeLogBox.js\", \"../../Libraries/NativeModules/specs/NativeRedBox.js\", \"../../Libraries/NativeModules/specs/NativeSourceCode.js\", \"../../Libraries/Network/NativeNetworkingAndroid.js\", \"../../Libraries/Network/NativeNetworkingIOS.js\", \"../../Libraries/Performance/NativeJSCSamplingProfiler.js\", \"../../Libraries/PermissionsAndroid/NativePermissionsAndroid.js\", \"../../Libraries/PushNotificationIOS/NativePushNotificationManagerIOS.js\", \"../../Libraries/ReactNative/NativeHeadlessJsTaskSupport.js\", \"../../Libraries/ReactNative/NativeI18nManager.js\", \"../../Libraries/ReactNative/NativeUIManager.js\", \"../../Libraries/Settings/NativeSettingsManager.js\", \"../../Libraries/Share/NativeShareModule.js\", \"../../Libraries/TurboModule/samples/NativeSampleTurboModule.js\", \"../../Libraries/Utilities/NativeAppearance.js\", \"../../Libraries/Utilities/NativeDevLoadingView.js\", \"../../Libraries/Utilities/NativeDeviceInfo.js\", \"../../Libraries/Utilities/NativePlatformConstantsAndroid.js\", \"../../Libraries/Utilities/NativePlatformConstantsIOS.js\", \"../../Libraries/Vibration/NativeVibration.js\", \"../../Libraries/WebPerformance/NativePerformance.js\", \"../../Libraries/WebPerformance/NativePerformanceObserver.js\", \"../../Libraries/WebPerformance/__mocks__/NativePerformance.js\", \"../../Libraries/WebPerformance/__mocks__/NativePerformanceObserver.js\", \"../../Libraries/WebSocket/NativeWebSocketModule.js\"]"

SCRIPT_PHASES_SCRIPT="$RCT_SCRIPT_RN_DIR/scripts/react_native_pods_utils/script_phases.sh"
WITH_ENVIRONMENT="$RCT_SCRIPT_RN_DIR/scripts/xcode/with-environment.sh"
/bin/sh -c "$WITH_ENVIRONMENT $SCRIPT_PHASES_SCRIPT"

